package com.se.unittest;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;

import static org.junit.Assert.*;

/**
 * Created by ACAN on 2017/12/8.
 */
public class CalculatorTest {
    private static Calculator calculator = new Calculator();
    @Before
    public void setUp() throws Exception {
        calculator.clear();
    }

    @After
    public void tearDown() throws Exception {
    }

    @Test
    public void add() throws Exception {
        calculator.add(2);
        calculator.add(3);
    }

    @Test
    public void substract() throws Exception {
        calculator.add(10);
        calculator.substract(2);
    }

    @Test
    public void multiply() throws Exception {
    }

    @Test
    public void divide() throws Exception {
        calculator.add(8);
        calculator.divide(0);
    }

    @Test
    public void square() throws Exception {
    }

    @Test
    public void squareRoot() throws Exception {
    }

    @Test
    public void clear() throws Exception {
    }

}